package com.zhangck.bos2_0.action.transit;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Actions;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.zhangck.bos2_0.Service.transit.InOutStorageInfoService;
import com.zhangck.bos2_0.common.BaseAction;

import cn.itcast.bos.domain.transit.InOutStorageInfo;

/** 
* @author 上午茶
* @version 创建时间：2018年6月19日 下午10:58:36 
* 类说明 
*/
@ParentPackage("json-default")
@Namespace("/")
@Scope("prototype")
@Actions
@Controller
public class InOutStorageInfoAction extends BaseAction<InOutStorageInfo> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	private InOutStorageInfoService inOutStorageInfoService;
	
	private String tramsitId;
	
	public void setTramsitId(String tramsitId) {
		this.tramsitId = tramsitId;
	}

	@Action(value = "inoutStore_save", results = { @Result(name = "success", type="redirect", location="./pages/transit/transitinfo.html") })
	public String inoutStore_save() {
		System.out.println(tramsitId);
		inOutStorageInfoService.save(tramsitId,model);
		return "success";
	}
}
